﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FazaDemo.ViewModels;

namespace FazaDemo.PL.Wpf
{
    class ApiRouteFactory
    {

        public string GetRoute<T>()
        {
            var type = typeof(T);
            if (type == typeof(DistrictViewModel))
            {
                return "/api/districtview/";
            }
            if (type == typeof(PlaceViewModel))
            {
                return "/api/placeview/";
            }
            if (type == typeof(StreetViewModel))
            {
                return "/api/streetview/";
            }
            return default(string);
        }

    }
}
